package com.yzh.pinboard.CustomView;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v4.widget.ViewDragHelper;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;

/**
 * Created by Administrator on 2017/3/14.
 */

public class SlideEraserView extends LinearLayout {
    private ViewDragHelper mDragHelper;

    public SlideEraserView(Context context) {
        super(context);
        init(context);
    }

    private void init(Context context) {
        mDragHelper = ViewDragHelper.create(this, 1.0f, new ViewDragHelper.Callback() {
            @Override
            public boolean tryCaptureView(View child, int pointerId) {
                return false;
            }
        });
    }

    public SlideEraserView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

}
